import {Injectable} from '@angular/core';
import {CommHttpService} from '../../../core/comm.http.service';
import {SERVERS_NAME} from '../../../config/config';
import {HttpService} from '../../../core/http.service';

@Injectable()
export class DeptStatisticalService extends CommHttpService {

  protected preUrl = `${SERVERS_NAME.INSTITUTION_SERVER}ins`;

  constructor(
    protected http: HttpService
  ) {
    super(http);
  }

  /**
   * 获取制度统计
   */
  getInstitutionStatisticsApi(data) {
    return this.http.post(data, `${this.preUrl}/statistics`);
  }

}
